/***************************************************************************
 *   Copyright (C) 2008 by Thomas Fannes                                   *
 *   thomasfannes@gmail.com                                                *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
 
#ifndef STRUCTUREDEFINES_H
#define STRUCTUREDEFINES_H

namespace structure
{
	enum GridLocationType
	{
		GridLocationInvalid 	= -1,
		GridLocationHexagon 	= 0,
		GridLocationSide 	= 1,
		GridLocationCorner 	= 2,
	};

	enum HexagonSide
	{
		HexagonSidePos12H 	= 0,
		HexagonSidePos2H 	= 1,
		HexagonSidePos4H 	= 2,
		HexagonSidePos6H 	= 3,
		HexagonSidePos8H 	= 4,
		HexagonSidePos10H 	= 5,
	};

	enum HexagonCorner
	{
		HexagonCornerPos1H 	= 0,
		HexagonCornerPos3H 	= 1,
		HexagonCornerPos5H 	= 2,
		HexagonCornerPos7H 	= 3,
		HexagonCornerPos9H 	= 4,
		HexagonCornerPos11H 	= 5,
	};

	enum HexagonHexagon
	{
		HexagonHexagonPos12H 	= 0,
		HexagonHexagonPos2H 	= 1,
		HexagonHexagonPos4H 	= 2,
		HexagonHexagonPos6H 	= 3,
		HexagonHexagonPos8H 	= 4,
		HexagonHexagonPos10H 	= 5,
	};

	enum CornerType
	{
		CornerTypeInvalid	= -1,
		CornerTypeST		= 0,
		CornerTypeBT		= 1,
	};

	enum CornerSTSide
	{
		CornerSTSidePos1H	= 0,
		CornerSTSidePos5H	= 1,
		CornerSTSidePos9H	= 2,
		CornerBTSidePos3H	= 0,
		CornerBTSidePos7H	= 1,
		CornerBTSidePos11H	= 2,

	};

	enum CornerSTHexagon
	{
		CornerSTHexagonPos3H	= 0,
		CornerSTHexagonPos7H	= 1,
		CornerSTHexagonPos11H	= 2,
		CornerBTHexagonPos1H	= 0,
		CornerBTHexagonPos5H	= 1,
		CornerBTHexagonPos9H	= 2,
	};

	enum CornerCorner
	{
		CornerSTCornerPos1H	= 0,
		CornerSTCornerPos5H	= 1,
		CornerSTCornerPos9H	= 2,
		CornerBTCornerPos3H	= 0,
		CornerBTCornerPos7H	= 1,
		CornerBTCornerPos11H	= 2,
	};


	enum SideType
	{
		SideTypeInvalid		= -1,
		SideType1		= 0,
		SideType3		= 1,
		SideType5		= 2,
	};

	enum SideHexagon
	{
		Side1HexagonPos4H	= 0,
		Side1HexagonPos10H	= 1,
		Side3HexagonPos12H	= 0,
		Side3HexagonPos6H	= 1,
		Side5HexagonPos2H	= 0,
		Side5HexagonPos8H	= 1,
	};
	
	enum SideCorner
	{
		Side1CornerPos1H	= 0,
		Side1CornerPos7H	= 1,
		Side3CornerPos3H	= 0,
		Side3CornerPos9H	= 1,
		Side5CornerPos5H	= 0,
		Side5CornerPos11H	= 1,
	};

	enum SideSide
	{
		Side1SidePos3H		= 0,
		Side1SidePos5H		= 1,
		Side1SidePos9H		= 2,
		Side1SidePos11H		= 3,
		Side3SidePos1H		= 0,
		Side3SidePos5H		= 1,
		Side3SidePos7H		= 2,
		Side3SidePos11H		= 3,
		Side5SidePos1H		= 0,
		Side5SidePos3H		= 1,
		Side5SidePos7H		= 2,
		Side5SidePos9H		= 3,
	};
}







#endif
